//
//  SmallTableViewCell.m
//  A段项目
//
//  Created by cmcmhjr123 on 15/7/20.
//  Copyright (c) 2015年 dlios. All rights reserved.
//

#import "SmallTableViewCell.h"

@implementation SmallTableViewCell

- (void)dealloc
{
    [_image release];
    [_nameLabel release];
    [_stateLabel release];
    [super dealloc];
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.image = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, 90, 70)];
        self.image.backgroundColor = [UIColor whiteColor];
        [self.contentView addSubview:self.image];
        
        self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(110, 20, 160, 20)];
        [self.contentView addSubview:self.nameLabel];
        
        self.stateLabel = [[UILabel alloc] initWithFrame:CGRectMake(110, 55, 140, 20)];
        self.stateLabel.font = [UIFont systemFontOfSize:14];
        
        [self.contentView addSubview:self.stateLabel];
        
        
        
    }
    return self;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
